package com.changgou.system;

import org.springframework.security.crypto.bcrypt.BCrypt;

/**
 * @Description:
 * @Version: V1.0
 */
public class TestBcrypt {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            String gensalt = BCrypt.gensalt();
            System.out.println(gensalt);
            String hashpw = BCrypt.hashpw("123456", gensalt);
            System.out.println(hashpw);
            boolean checkpw = BCrypt.checkpw("123456", hashpw);
            System.out.println(checkpw);
        }
    }
}
